package com.awonsome.admin.boot.mapper;

import com.awonsome.admin.api.dto.UserAuthDTO;
import com.awonsome.admin.boot.pojo.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yangdejun
 * @date 2022/1/23 22:25
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    List<SysUser> list(Page<SysUser> page, @Param(value = "user") SysUser user);

    UserAuthDTO getByUsername(String username);

}
